package routes

import (
	"intelli-dl-online-logo-go/controller"

	"github.com/gin-gonic/gin"
)

// registerVerifyRoutes 注册验证码相关路由
func registerVerifyRoutes(api *gin.RouterGroup, verifyController *controller.VerifyController) {
	// 验证码相关路由
	verify := api.Group("/verify")
	{
		verify.GET("/sms", verifyController.GetSMSCode)               // 获取短信验证码
		verify.GET("/email", verifyController.GetEmailCode)           // 获取邮箱验证码
		verify.POST("/sms/check", verifyController.VerifySMSCode)     // 验证短信验证码
		verify.POST("/email/check", verifyController.VerifyEmailCode) // 验证邮箱验证码
	}
}
